{% extends 'cart-review.twig' %}
{% block orderProcess %}{% endblock %}


{% block cartContentsItemsList %}
    <tr>
        <td class="col1"><a class="cartImg-wrapper" href="{{ url('wine-details', { wine: oi.product.metadata.urlfragment } )}}" ><img src="{{oi.valueForKey("productInvoiceImageUrl")}}" class="cartImg" alt=""/></a> <a class="productDes" href="{{ url('wine-details', { wine: oi.product.metadata.urlfragment } )}}">{{oi.valueForKey("productInvoiceDescription")}}</a></td>
        <td class="col2">{{cart.currency}}{{cart.currencySign}}{{oi.valueForKey('price')|number_format(2, '.', ',') }} </td>
        <td class="col3">{{oi.valueForKey('quantity')}}</td>
        <td class="col4">{{cart.currency}}{{cart.currencySign}}{{oi.valueForKey('subTotal')|number_format(2, '.', ',') }} </td>
    </tr>
{% endblock %}

{% block cartDetailsContainer %}
    <div id="Checkout" class="purchase-wrapper">
        {{ parent() }}
    </div>
{% endblock %}


{% block cartContentsItemsFooterContainer  %}
    <tr>
        <td colspan="4" class="col4">Shipping: {{cart.currency}}{{cart.currencySign}}{{cart.orderContainer.valueForKey('shippingPrice')|number_format(2, '.', ',') }}</td>
        <td class="col5">&nbsp;</td>
    </tr>
{%  endblock %}

{% block cartContentShipping %}
{% endblock %}

{% block cartContentTotal %}
    <div class="cart-foot">
        <div class="cart-shipping-message">
            {% include "includes/shipping-notice.twig" %}
        </div>
        <div class="cart-total"><strong>Total: </strong><span class="price">{{cart.currency}}{{cart.currencySign}}{{cart.orderContainer.valueForKey('totalPrice')|number_format(2, '.', ',') }}</span></div>
    </div>
{% endblock %}